import { defHttp } from '/@/utils/http/axios';

enum Api {
  // userFGPrefix = '/api/system/DataInterface/603513855619894277/Actions/Preview',
  // UserInfoPrefix = '/api/system/DataInterface/603514347653696517/Actions/Preview',
  // deptInfoPrefix = '/api/system/DataInterface/603514588721318917/Actions/Preview',

  userFGPrefix = '/api/system/DataInterface/606114257200745477/Actions/Preview',
  UserInfoPrefix = '/api/system/DataInterface/603514347653696517/Actions/Preview',
  deptInfoPrefix = '/api/system/DataInterface/603514588721318917/Actions/Preview',
  findUserPrefix = '/api/system/DataInterface/603513855619894277/Actions/Response',
  findDeptPrefix = '/api/system/DataInterface/606113037815909381/Actions/Response',
}
// 人员分管
export function getSupervisionFG(data) {
  return defHttp.post({ url: Api.userFGPrefix, data });
}
// 人员信息
export function getSupervisionInfo(data) {
  return defHttp.post({ url: Api.UserInfoPrefix, data });
}

export function getUserPrefix(data) {
  return defHttp.post({ url: Api.findUserPrefix, data  });
}
// 部门信息
export function getDeptInfo(data) {
  return defHttp.post({ url: Api.deptInfoPrefix, data });
}
export function getDeptPrefix(data) {
  return defHttp.post({ url: Api.findDeptPrefix, data });
}